//
//  JSAFNTools.h
//  IJSOCproject
//
//  Created by shange on 2017/4/26.
//  Copyright © 2017年 jinshan. All rights reserved.
//


/**
 *  AFN的封装类
 */
#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, MethodType) {
    GET = 0,
    POST = 1,
    OTHER = 2,
};

typedef void (^callBackData)(id data, id error);


@interface JSAFNTools : NSObject

+ (void)loadHTTPDataWithURL:(NSString *)url parameters:(NSMutableDictionary *)parameters methodType:(MethodType)type callBackData:(callBackData)blockData;


@end
